package StudyCode.summary.regularexpressionsmatch;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class UseSPlusToBreakingAStringIntoSeparateWords {
	public static void main(String[] args) {
		String s = "this is a test 1 2 3 4.";

		String[] word = s.split("\\s+");

		for (String w : word)
			System.out.println(w);

	}
}
